/* header created automatically with -DGEN_TREES_H */

local const ct_data static_ltree[L_CODES] = {
{{  0},{  5}}, {{ 16},{  5}}, {{  8},{  5}}, {{ 24},{  5}}, {{  4},{  5}},
{{ 20},{  5}}, {{ 12},{  5}}, {{ 17},{  6}}, {{ 28},{  5}}, {{  2},{  5}},
{{ 49},{  6}}, {{  9},{  6}}, {{ 41},{  6}}, {{ 25},{  6}}, {{ 19},{  7}},
{{251},{  9}}, {{ 83},{  7}}, {{507},{  9}}, {{  7},{  9}}, {{263},{  9}},
{{135},{  9}}, {{391},{  9}}, {{ 71},{  9}}, {{327},{  9}}, {{199},{  9}},
{{455},{  9}}, {{ 39},{  9}}, {{295},{  9}}, {{167},{  9}}, {{423},{  9}},
{{103},{  9}}, {{359},{  9}}, {{231},{  9}}, {{487},{  9}}, {{ 23},{  9}},
{{279},{  9}}, {{151},{  9}}, {{ 57},{  6}}, {{ 18},{  5}}, {{ 10},{  5}},
{{ 26},{  5}}, {{  5},{  6}}, {{ 37},{  6}}, {{ 21},{  6}}, {{ 53},{  6}},
{{ 13},{  6}}, {{ 51},{  7}}, {{115},{  7}}, {{407},{  9}}, {{ 11},{  7}},
{{ 87},{  9}}, {{343},{  9}}, {{215},{  9}}, {{471},{  9}}, {{ 55},{  9}},
{{311},{  9}}, {{183},{  9}}, {{439},{  9}}, {{119},{  9}}, {{375},{  9}},
{{247},{  9}}, {{503},{  9}}, {{ 15},{  9}}, {{271},{  9}}, {{143},{  9}},
{{399},{  9}}, {{ 79},{  9}}, {{335},{  9}}, {{207},{  9}}, {{463},{  9}},
{{ 47},{  9}}, {{303},{  9}}, {{175},{  9}}, {{431},{  9}}, {{  6},{  5}},
{{ 22},{  5}}, {{ 14},{  5}}, {{ 30},{  5}}, {{  1},{  5}}, {{ 45},{  6}},
{{ 29},{  6}}, {{ 61},{  6}}, {{  3},{  6}}, {{ 35},{  6}}, {{ 75},{  7}},
{{ 43},{  7}}, {{107},{  7}}, {{ 27},{  7}}, {{111},{  9}}, {{367},{  9}},
{{ 91},{  7}}, {{ 59},{  7}}, {{239},{  9}}, {{495},{  9}}, {{123},{  8}},
{{ 31},{  9}}, {{287},{  9}}, {{159},{  9}}, {{415},{  9}}, {{ 95},{  9}},
{{351},{  9}}, {{223},{  9}}, {{479},{  9}}, {{ 63},{  9}}, {{319},{  9}},
{{191},{  9}}, {{447},{  9}}, {{127},{  9}}, {{383},{  9}}, {{255},{  9}},
{{511},{  9}}
};

local const ct_data static_dtree[D_CODES+1] = {
{{ 1},{ 9}}, {{257},{ 9}}, {{129},{ 9}}, {{385},{ 9}}, {{65},{ 9}},
{{321},{ 9}}, {{193},{ 9}}, {{449},{ 9}}, {{33},{ 9}}, {{289},{ 9}},
{{161},{ 9}}, {{417},{ 9}}, {{97},{ 9}}, {{353},{ 9}}, {{225},{ 9}},
{{481},{ 9}}, {{17},{ 9}}, {{273},{ 9}}, {{145},{ 9}}, {{401},{ 9}},
{{81},{ 9}}, {{337},{ 9}}, {{209},{ 9}}, {{465},{ 9}}, {{49},{ 9}},
{{305},{ 9}}, {{177},{ 9}}, {{433},{ 9}}, {{113},{ 9}}, {{369},{ 9}},
{{241},{ 9}}, {{497},{ 9}}, {{ 9},{ 9}}, {{265},{ 9}}, {{137},{ 9}},
{{393},{ 9}}, {{73},{ 9}}, {{329},{ 9}}, {{201},{ 9}}, {{457},{ 9}},
{{41},{ 9}}, {{297},{ 9}}, {{169},{ 9}}, {{425},{ 9}}, {{105},{ 9}},
{{361},{ 9}}, {{233},{ 9}}, {{489},{ 9}}, {{25},{ 9}}, {{281},{ 9}},
{{153},{ 9}}, {{409},{ 9}}, {{89},{ 9}}, {{345},{ 9}}, {{217},{ 9}},
{{473},{ 9}}, {{57},{ 9}}, {{313},{ 9}}, {{185},{ 9}}, {{441},{ 9}},
{{121},{ 9}}, {{377},{ 9}}, {{249},{ 9}}, {{505},{ 9}}, {{ 5},{ 9}},
{{261},{ 9}}, {{133},{ 9}}, {{389},{ 9}}, {{69},{ 9}}, {{325},{ 9}},
{{197},{ 9}}, {{453},{ 9}}, {{37},{ 9}}, {{293},{ 9}}, {{165},{ 9}},
{{421},{ 9}}, {{101},{ 9}}, {{357},{ 9}}, {{229},{ 9}}, {{485},{ 9}},
{{21},{ 9}}, {{277},{ 9}}, {{149},{ 9}}, {{405},{ 9}}, {{85},{ 9}},
{{341},{ 9}}, {{213},{ 9}}, {{469},{ 9}}, {{53},{ 9}}, {{309},{ 9}},
{{181},{ 9}}, {{437},{ 9}}, {{117},{ 9}}, {{373},{ 9}}, {{245},{ 9}},
{{501},{ 9}}, {{13},{ 9}}, {{269},{ 9}}, {{141},{ 9}}, {{397},{ 9}},
{{77},{ 9}}, {{333},{ 9}}, {{205},{ 9}}, {{461},{ 9}}, {{45},{ 9}},
{{301},{ 9}}, {{173},{ 9}}, {{429},{ 9}}, {{109},{ 9}}, {{365},{ 9}},
{{237},{ 9}}, {{493},{ 9}}, {{29},{ 9}}, {{285},{ 9}}, {{157},{ 9}},
{{413},{ 9}}, {{93},{ 9}}, {{349},{ 9}}, {{221},{ 9}}, {{477},{ 9}},
{{61},{ 9}}, {{317},{ 9}}, {{189},{ 9}}, {{445},{ 9}}, {{125},{ 9}},
{{381},{ 9}}, {{253},{ 9}}, {{509},{ 9}}, {{ 3},{ 9}}, {{259},{ 9}},
{{131},{ 9}}, {{387},{ 9}}, {{67},{ 9}}, {{323},{ 9}}, {{195},{ 9}},
{{451},{ 9}}, {{35},{ 9}}, {{291},{ 9}}, {{163},{ 9}}, {{419},{ 9}},
{{99},{ 9}}, {{355},{ 9}}, {{227},{ 9}}, {{483},{ 9}}, {{19},{ 9}},
{{275},{ 9}}, {{147},{ 9}}, {{403},{ 9}}, {{83},{ 9}}, {{339},{ 9}},
{{211},{ 9}}, {{467},{ 9}}, {{51},{ 9}}, {{307},{ 9}}, {{179},{ 9}},
{{435},{ 9}}, {{115},{ 9}}, {{371},{ 9}}, {{243},{ 9}}, {{499},{ 9}},
{{11},{ 9}}, {{267},{ 9}}, {{139},{ 9}}, {{395},{ 9}}, {{75},{ 9}},
{{331},{ 9}}, {{203},{ 9}}, {{459},{ 9}}, {{43},{ 9}}, {{299},{ 9}},
{{171},{ 9}}, {{427},{ 9}}, {{107},{ 9}}, {{363},{ 9}}, {{235},{ 9}},
{{491},{ 9}}, {{27},{ 9}}, {{283},{ 9}}, {{155},{ 9}}, {{411},{ 9}},
{{91},{ 9}}, {{347},{ 9}}, {{219},{ 9}}, {{475},{ 9}}, {{59},{ 9}},
{{315},{ 9}}, {{187},{ 9}}, {{443},{ 9}}, {{123},{ 9}}, {{379},{ 9}},
{{251},{ 9}}, {{507},{ 9}}, {{ 7},{ 9}}, {{263},{ 9}}, {{135},{ 9}},
{{391},{ 9}}, {{71},{ 9}}, {{327},{ 9}}, {{199},{ 9}}, {{455},{ 9}},
{{39},{ 9}}, {{295},{ 9}}, {{167},{ 9}}, {{423},{ 9}}, {{103},{ 9}},
{{359},{ 9}}, {{231},{ 9}}, {{487},{ 9}}, {{23},{ 9}}, {{279},{ 9}},
{{151},{ 9}}, {{407},{ 9}}, {{87},{ 9}}, {{343},{ 9}}, {{215},{ 9}},
{{471},{ 9}}, {{55},{ 9}}, {{311},{ 9}}, {{183},{ 9}}, {{439},{ 9}},
{{119},{ 9}}, {{375},{ 9}}, {{247},{ 9}}, {{503},{ 9}}, {{15},{ 9}},
{{271},{ 9}}, {{143},{ 9}}, {{399},{ 9}}, {{79},{ 9}}, {{335},{ 9}},
{{207},{ 9}}, {{463},{ 9}}, {{47},{ 9}}, {{303},{ 9}}, {{175},{ 9}},
{{431},{ 9}}, {{111},{ 9}}, {{367},{ 9}}, {{239},{ 9}}, {{495},{ 9}},
{{31},{ 9}}, {{287},{ 9}}, {{159},{ 9}}, {{415},{ 9}}, {{95},{ 9}},
{{351},{ 9}}, {{223},{ 9}}, {{479},{ 9}}, {{63},{ 9}}, {{319},{ 9}},
{{191},{ 9}}, {{447},{ 9}}, {{127},{ 9}}, {{383},{ 9}}, {{255},{ 9}},
{{ 0},{ 6}}, {{32},{ 6}}, {{16},{ 6}}, {{48},{ 6}}, {{ 8},{ 6}},
{{40},{ 6}}, {{24},{ 6}}, {{56},{ 6}}, {{ 4},{ 6}}, {{36},{ 6}},
{{20},{ 6}}, {{52},{ 6}}, {{12},{ 6}}, {{44},{ 6}}, {{28},{ 6}},
{{60},{ 6}}, {{ 2},{ 6}}, {{34},{ 6}}, {{18},{ 6}}, {{50},{ 6}},
{{10},{ 6}}, {{42},{ 6}}, {{26},{ 6}}, {{58},{ 6}}, {{ 6},{ 6}},
{{38},{ 6}}, {{22},{ 6}}, {{54},{ 6}}, {{14},{ 6}}, {{46},{ 6}},
{{30},{ 6}}, {{62},{ 6}}, {{511},{ 9}}
};

#if REFNUM > 1
local const ct_data static_ztree[Z_CODES] = {
{{ 0},{ 2}}, {{ 2},{ 2}}, {{ 1},{ 3}}, {{ 5},{ 3}}, {{ 3},{ 4}},
{{11},{ 4}}, {{ 7},{ 4}}, {{15},{ 4}}
};

#else
local const ct_data static_ztree[Z_CODES] = {
{{ 0},{ 1}}, {{ 1},{ 1}}
};
#endif

const uch zd_dist_code[DIST_CODE_LEN] = {
 0,  1,  2,  3,  4,  4,  5,  5,  6,  6,  6,  6,  7,  7,  7,  7,  8,  8,  8,  8,
 8,  8,  8,  8,  9,  9,  9,  9,  9,  9,  9,  9, 10, 10, 10, 10, 10, 10, 10, 10,
10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12,
12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13,
13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14,
14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14,
14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14,
14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15,
15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,  0,  0, 16, 17,
18, 18, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22,
23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24,
24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26,
26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27,
27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27,
27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29
};

const uch zd_length_code[LENGTH_CODE_LEN]= {
 0,  1,  2,  3,  4,  5,  6,  7,  8,  8,  9,  9, 10, 10, 11, 11, 12, 12, 12, 12,
13, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16,
17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19,
19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20,
21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22,
22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23,
23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24,
24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24,
25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26,
26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26,
26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27,
27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27,  0,  0,  0,  0,
28, 28, 29, 29, 30, 30, 30, 30, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32,
33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35,
36
};

local const int base_length[LENGTH_CODES] = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 10,
12, 14, 16, 20, 24, 28, 32, 40, 48, 56,
64, 80, 96, 112, 128, 160, 192, 224, 256, 384,
512, 768, 1024, 1536, 2048, 3072, 4095
};

local const int base_dist[DIST_CODES] = {
    0,     1,     2,     3,     4,     6,     8,    12,    16,    24,
   32,    48,    64,    96,   128,   192,   256,   384,   512,   768,
 1024,  1536,  2048,  3072,  4096,  6144,  8192, 12288, 16384, 24576
};

